
import DBConnection.TemperaturaDB;
import Services.Temperatura;
import java.util.Date;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Sergioc
 */
public class Teste {
    
    
    public static void main (String args[]) {
        //DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date = new Date();
        //System.out.println(dateFormat.format(date));
        
        
        Temperatura temp = new Temperatura();
        TemperaturaDB tempDB = new TemperaturaDB();
        
        temp.setDataTemperatura(date);
        temp.setValorTemperatura(25.1);
        
        tempDB.gravaTemperatura(temp);        
        
    }
    
}
